<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width">
  <title>Title</title>
</head>
<body>
<header></header>
<div id="app">
  <button @click="handleClick" style="padding: 20px;">
    <label style="background: pink;" @click.stop="handleLabelClick">小按钮</label>
  </button>
  <form @submit="handleSubmit" @click.capture="handleClickForm">
    <button type="submit" @click="handleSubmitInner">提交</button>
  </form>
  <div style="height: 300px;overflow-y: auto;background: #eee" @touchmove="handleTouchmove">
    <div style="height: 600px;"></div>
  </div>
</div>
<footer></footer>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
  (function () {
    new Vue({
      el: '#app',
      methods: {
        handleClick () {
          alert('click')
        },
        handleLabelClick () {
          alert('label click')
        },
        handleSubmit () {
          alert('submit form')
        },
        handleSubmitInner () {
          alert('click submit button')
        },
        handleClickForm () {
          alert('click form')
        },
        handleTouchmove () {
          console.log('touch move')
        }
      }
    })
  })()
</script>
</body>
</html>
